/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package praktikum_3.percobaan_1;

/**
 *
 * @author Liem
 */
public class Manager extends Employee{

private double bonus;

public Manager(String name, double salary, int year,int month, int day){
    super(name, salary, year, month, day);
    bonus = 0;
}

public void setBonus (double bonus){
    this.bonus = bonus;
}

public double getSalary(){
    double baseSalary = super.getSalary();
    return baseSalary + bonus;
}

public String info(){
    return "Pegawai yang terdaftar pada " + super.getHireDay() + " bernama " + super.getName();
}

}
